package com.xywl.escort.view.farm;

import com.xywl.escort.base.BasePresenter;
import com.xywl.escort.base.BaseView;
import com.xywl.escort.bean.BaseResp;
import com.xywl.escort.bean.PreBuyResp;
import com.xywl.escort.bean.ProjectDetailResp;
import com.xywl.escort.bean.RankingListResp;

public class ProjectDetailContract {

    public interface Presenter extends BasePresenter {
        void takeView(ProjectDetailContract.View view);

        void loadProjectDetail(String id);

        void preBuy(String projectId, int isChooseAgreement, int num);
    }

    interface View extends BaseView<Presenter> {

        void loadProjectDetailSuccess(ProjectDetailResp.DataBean dataBean);

        void loadProjectDetailFailure();

        void preBuySuccess(PreBuyResp resp);

        void preBuyFailure(String msg);
    }
}
